package org.flint92.nacos.client.feign.controller;

import org.flint92.nacos.client.feign.api.HelloClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author flint92
 */
@RestController
public class HelloController {

  @Resource
  private HelloClient helloClient;

  @GetMapping("/hello")
  public String hello(@RequestParam String name) {
    return "Return: " + helloClient.hello(name);
  }

}
